home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
cbibcode.arc
/
CHDIR.C
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1991-08-05
|
280 b
|
17 lines
/* chdir.c function from page 378 of turboc bible */
#include<stdio.h>
#include<dir.h>
main(int argc, char **argv)
{
if(argc < 2)
{
printf("Usage: %s <pathnames>\n", argv[0]);
}
else
{
if(chdir(argv[1]) != 0)
{
perror("Error in \"chdir\"");
}
}
}